﻿using UnityEngine;
using System.Collections;

public class PlayerLivesHUD : MonoBehaviour {
	public Texture2D shipIcon;
	public int playerLivesStartX = 5;
	public int playerLivesStartY = 5;
	public int iconSize = 25;
	public int lifeCount_Padding = -5;
	
	void OnGUI(){
		
		for (var i=1; i<= GameManager.playerLives; i++) {
			
			GUI.Label (new Rect (playerLivesStartX, playerLivesStartY, iconSize, iconSize), shipIcon);
			playerLivesStartX += (iconSize + lifeCount_Padding);
		}
		playerLivesStartX = 5;
		
		
		
	}
}
